<?php
$this->title = "My shopping cart ";
$this->headTitle($this->title);
?>

  <div id="content">
    <div id="inner">
      
      <div class="left float-l">
        <div class="float-l">
        <br><br></div>
          <div id="prod">
        <table class="protable">
        <tr><th height="3"><b><?php echo $this->message ?></b></th><th></th></tr>
            <?php if($this->check=="1") :?>
            <?php $i=0; ?>
            <?php foreach ($this->allselectedproducts as $pro): ?>
            <?php if($i%2==0): ?>
                <tr>
            <?php endif; ?>
            <td>
               <img src="<?php echo "/prodimages/".$pro['image'] ?>" alt="<?php echo $pro['product_name']; ?>" >
            </td>
            <td>
               <b>Name: </b><?php echo $pro['product_name']?><br />
               <b>Price: </b><?php echo $pro['price']?><br />
               <a class="removefromcart" id="<?php echo $pro['product_id'] ;?>" href="javascript:void(0);"><img src="/images/deletefromcart.jpg" alt="remove from shoping cart"></a>
               
            </td>
            <?php if($i%2==0): ?>
                </tr>
            <?php endif; ?>
            <?php $i++; ?>
            <?php endforeach;?>
            <?php  endif; ?>
        </table>
        </div>
      </div>
      <div class="right folat-r">
        <div id="side">
            <div id="top">
          </div>
          <div id="bm">
            <h2>My Side</h2>
            <ul class="meun">
              <li><a href="/user/show">My Profile</a></li>
              <li><a href="/user/edit">Edit Profile</a></li>
              <li><a href="/user/displaycart">My Shop Cart </a></li>
            </ul>
            
            <h2><a href="javascript:void(0);" class="buy" >Buy</a></h2>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- /content -->
